//
//  M4TakePhotoAlertView.swift
//  M4
//
//  Created by YuChuang on 2024/8/13.
//

import UIKit

class M4TakePhotoAlertView: UIView {
    
    @IBOutlet weak var M4TakePhotoBGView: UIView!
    
    @IBOutlet weak var M4TakePhotoTitle: UILabel!
    
    var M4TakePhotoCamareBlock: (() -> Void)?
    
    var M4TakePhotoAlbumBlock: (() -> Void)?
    
    override func awakeFromNib() {
        self.frame = CGRect(x: 0, y: 0, width: M4ScreenWidth, height: M4ScreenHeight)
    }
    
    @IBAction func M4TakePhotoClose(_ sender: UIButton) {
        M4PopViewHidden(subview: self.M4TakePhotoBGView)
    }
    
    @IBAction func M4TakePhotoShowCamare(_ sender: UIButton) {
        M4PopViewHidden(subview: self.M4TakePhotoBGView)
        M4TakePhotoCamareBlock?()
    }
    
    @IBAction func M4TakePhotoShowAlbum(_ sender: UIButton) {
        M4PopViewHidden(subview: self.M4TakePhotoBGView)
        M4TakePhotoAlbumBlock?()
    }
    

}
